package com.springboot.admin.controller;

import com.springboot.admin.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author sunyaodong
 * @description
 * @email 15091776297@163.com
 * @created 2018/8/27 10:28
 */
@RestController
public class HelloController {
    @Resource
    private HelloService helloService;

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String HiFeign(@RequestParam String name){
        return helloService.hello(name);
    }
}
